home *** CD-ROM | disk | FTP | other *** search
/ Aminet 51 / Aminet 51 (2002)(GTI - Schatztruhe)[!][Oct 2002].iso / Aminet / dev / c / minigl.lha / MiniGL / include / mgl / modes.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-03-27  |  884 b   |  49 lines

  1. /*
  2.  * $Id: modes.h,v 1.1.1.1 2000/04/07 19:44:51 tfrieden Exp $
  3.  *
  4.  * $Date: 2000/04/07 19:44:51 $
  5.  * $Revision: 1.1.1.1 $
  6.  *
  7.  * (C) 1999 by Hyperion
  8.  * All rights reserved
  9.  *
  10.  * This file is part of the MiniGL library project
  11.  * See the file Licence.txt for more details
  12.  *
  13.  */
  14.  
  15. #ifndef __MGL_MODES_H
  16. #define __MGL_MODES_H
  17.  
  18. #ifdef __VBCC__
  19. #pragma amiga-align
  20. #endif
  21.  
  22. #include <Warp3D/Warp3D.h>
  23.  
  24. #ifdef __VBCC__
  25. #pragma default-align
  26. #endif
  27.  
  28. #define MGL_MAX_MODE 80
  29.  
  30. typedef struct
  31. {
  32.     GLint id; // blackbox id used for mglCreateContextID()
  33.     GLint width,height;     // screenmode size
  34.     GLint bit_depth;        // depth of mode
  35.     char  mode_name[MGL_MAX_MODE]; // name for this mode
  36. } MGLScreenMode;
  37.  
  38. typedef struct
  39. {
  40.     ULONG width,height,depth;
  41.     ULONG pixel_format;
  42.     void *base_address;
  43.     ULONG pitch;
  44. } MGLLockInfo;
  45.  
  46. typedef GLboolean (*MGLScreenModeCallback)(MGLScreenMode *);
  47.  
  48. #endif
  49.